<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>

<script src="../lib/jquery-3.4.1/jQuery.js" charset="utf-8"></script>

<script type="text/javascript">
    $.ajax({
        type: 'GET',
        url: 'http://110.42.199.36:8081/user/selectAllUser',
        dataType: 'json',
        success: function (data) {
            console.log(data)
        },
        error: function () {
            console.log("访问失败");
        }
    })
</script>

</body>
</html>